package appapi.entity.auth;

import appapi.common.BaseEntity;
import appapi.common.UpdateGroup;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 角色信息
 * 
 * @author lc
 * @version 1.0
 * @date 2023-05-17 10:08:27
 */
@ApiModel
@Data
@NoArgsConstructor
@TableName("role")
public class 	RoleEntity extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "角色id")
	@NotNull(message = "角色id不能为空", groups = {UpdateGroup.class})
	@TableId(type = IdType.AUTO)
	private Long roleId;

	@ApiModelProperty(value = "角色名称")
	private String roleName;

	@ApiModelProperty(value = "角色编码")
	private String roleCode;

	@ApiModelProperty(value = "0-使用;1-停用;2-删除")
	private Integer roleState;

	@ApiModelProperty(value = "0是/1否")
	private Integer isPreset;

	@ApiModelProperty(value = "备注说明")
	private String roleNote;

	@ApiModelProperty(value = "")
	private String createPeo;

}
